import {request} from "./request";

//用户登录接口
export function userLogin(email,password){
    return request({
        method: 'post',
        url: '/user/login',
        data: {
            email,
            password
        }
    })
}

//用户注册接口
export function userReg(email,password,nickname){
    return request({
        method: 'post',
        url: '/user/reg',
        data: {
            email,
            password,
            nickname
        }
    })
}